Fix GtkCellAreaBox to not paint a focus rectangle while a cell is currently being...
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 29 Nov 2010 07:49:34 +0000 (16:49 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 29 Nov 2010 07:49:34 +0000 (16:49 +0900)
gtk/gtkcellareabox.c

index 9d4bcbdae6ca7a0c53804f8dbc25d475d97583aa..0ded281858747ca90712510880fab3d92a64e620 100644 (file)
@@ -1131,6 +1131,12 @@ gtk_cell_area_box_render (GtkCellArea          *area,
   gboolean               first_focus_cell = TRUE;
   gboolean               focus_all = FALSE;
 
+  /* Make sure we dont paint a focus rectangle while there
+   * is an editable widget in play 
+   */
+  if (gtk_cell_area_get_edited_cell (area))
+    paint_focus = FALSE;
+
   if (flags & GTK_CELL_RENDERER_FOCUSED)
     {
       focus_cell = gtk_cell_area_get_focus_cell (area);